<script>
    jQuery().ready(function(){
        // 应付模块-营销预付款退回核销单
        var yflx = getQueryString("yflx");
        if(yflx != null && yflx != ""){
            var yflxName = WfForm.convertFieldNameToId("yflx");
            WfForm.changeFieldValue(yflxName, {value:yflx});
        }else{
            console.log("不是三方链接！");
        }
    });

    function getQueryString(name){
        //解析浏览器链接参数
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.href.substr(1).match(reg);
        if (r != null) {
            return decodeURI(r[2]);
        }
        return null;
    }
</script>